<html>
<head>
<title>KFC so good</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="layout/mainstyle.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="jquery.js"></script>
<script>
	$(document).ready(function(){
		$("a").click(function(){
			id=this.getAttribute("id");
			$.ajax({
				type:"get",
				url:"get.php",
				data:"page="+id,
				success:function(kq){
					$("#aboutinfo").html(kq);
				}
			})
		})
	})
</script>
</head>
<body>
<div id="wrap">
	<div id="header">
		<img src="banner/kfc-sogood.png" />
		<div id='menu'>
			<ul>
				<li class="drop"><a href="index.php?page=about">GIỚI THIỆU</a></li>
				<li class="drop"><a href="index.php?page=menu&id=0">THỰC ĐƠN</a>
					<ul class='submenu'>
						<?php
							$con=mysql_connect("sql307.freevnn.com",'freev_11941239','khoaluan');
							mysql_select_db("freev_11941239_kfc",$con);	
							mysql_set_charset('utf8',$con);
							$sql="select * from type";
							$query=mysql_query($sql);
							while($data=mysql_fetch_assoc($query)){
								echo "<hr/>";
								echo "<li><a href='index.php?page=menu&id=$data[type_id]'>$data[type_name]</a></li>";
							}
						?>
					</ul>
				</li>
				
			</ul>
		</div>
	</div>
	<div  id="main">
		<?php include "include.php"; ?>		
	</div>
	<div id="bootom">
		Copyright 2012
	</div>
</div>
</body>
</html>